// .txt

beginzonescript;

variables;

short crime_tolerance = 200;
short last_abil;
short i;

body;

beginstate INIT_STATE;

	set_name(14,"Sage Lara");
	set_boss_level(14,2);
	set_attack_bonus(14,40);
	bless_char(14,2);
	
//	add_range_to_group(first,last,whichg);

	//if (get_sdf() > 0) {
		//make_zone_hostile();
		//}

	last_abil = get_current_tick();
	
	set_crime_tolerance(crime_tolerance);
	break;

beginstate EXIT_STATE;

break;

beginstate START_STATE;
	// clear zone?
	if ((zone_clear(ME) == FALSE) && (gf(66,14) + gf(66,15) + gf(66,16) + gf(66,17) >= 1) && (gf(66,21) > 0) && (gf(66,22) > 0)) {
		award_party_xp(100,30);
		print_str_color("You have cleared a route through this area.",2);
		clear_zone(ME);	
		}
		
	//if ((get_crime_level() >= crime_tolerance) && (get_sdf(,) == 0)) {
	//	make_zone_hostile();
	//	set_flag(,,1);
	//	}

	 if (get_attitude(14) < 10) {
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14,"You have come.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14,"Sit before me.");
		if (get_ran(1,0,100) < 10)
			give_char_text_bubble(14,"I have farsight.");
		if ((get_ran(1,0,100) < 20) && (gf(66,5) > 0))
			give_char_text_bubble(14,"Ohhhh ... My head.");
		}
	
	//if (((is_combat()) && (tick_difference(last_abil,get_current_tick()) > 0)) || ((is_group()) && (tick_difference(last_abil,get_current_tick()) > 5))) {
	//	last_abil = get_current_tick();
	//	}
break;

beginstate 10;
	sf(66,21,1);
break;

beginstate 11;
	sf(66,22,1);
break;

//	print_str("");
//	set_terrain_string_range(".",3);
//	set_terrain_string_range("The sign says - .",3);
